/**
 * 信息推送-推送历史-获取信息列表
 * @param {number} data.pageNumber - 当前页
 * @param {number} data.pageSize - 每页条数
 * @param {string} data.title - 信息标题
 * @param {string} data.push_names - 信息推送人
 * @param {number} data.push_channel - 推送方式 1APP 2服务号
 * @param {number} data.push_result - 推送结果 1成功 2失败
 * @param {string} data.start_time - 推送时间
 * @param {string} data.end_time - 推送时间
 * @param {number} data.msg_type - 信息类型 1资产 2招标拍卖
 * @param {number} data.accept_user_name - 信息接收人
 * @param {number} data.accept_user_company - 信息接收人
 * @param {number} data.accept_user_phone - 信息接收人
 * @param {number} data.is_viewed - 客户是否查看 1已查看 2未查看
 */
function apiGetInfoList(data) {
  console.log("apiGetInfoList", data);
  return new Promise((resolve, reject) => {
    const res = {
      code: 200,
      data: [
        {
          id: "a1b699ab-c9e8-4581-a59d-b64369251be91",
          number_id: "12345678901",
          title: "沧州地区处理使用中1200无拉伸制袋机23的机器",
          cate: "二手设备",
          zone_names: "河北",
          push_time: "2020-01-01 00:00:00",
          accept_user:
            "张三，李四，王五，赵六，张三，李四，王五，赵六，张三，李四，王五，赵六，张三，李四，王五，赵六，张三，李四，王五，赵六，张三，李四，王五，赵六",
          push_channel: "APP",
          push_result: 1,
          is_viewed: 1,
        },
        {
          id: "a1b699ab-c9e8-4581-a59d-b64369251be92",
          number_id: "12345678902",
          title: "沧州地区处理使用中1200无拉伸制袋机23的机器",
          cate: "二手设备",
          zone_names: "河北",
          push_time: "2020-01-01 00:00:00",
          accept_user: "张三",
          push_channel: "APP",
          push_result: 1,
          is_viewed: 1,
        },
        {
          id: "a1b699ab-c9e8-4581-a59d-b64369251be93",
          number_id: "12345678903",
          title: "沧州地区处理使用中1200无拉伸制袋机23的机器",
          cate: "二手设备",
          zone_names: "河北",
          push_time: "2020-01-01 00:00:00",
          accept_user: "张三",
          push_channel: "APP",
          push_result: 1,
          is_viewed: 1,
        },
        {
          id: "a1b699ab-c9e8-4581-a59d-b64369251be94",
          number_id: "12345678904",
          title: "沧州地区处理使用中1200无拉伸制袋机23的机器",
          cate: "二手设备",
          zone_names: "河北",
          push_time: "2020-01-01 00:00:00",
          accept_user: "张三",
          push_channel: "APP",
          push_result: 1,
          is_viewed: 1,
        },
        {
          id: "a1b699ab-c9e8-4581-a59d-b64369251be95",
          number_id: "12345678905",
          title: "沧州地区处理使用中1200无拉伸制袋机23的机器",
          cate: "二手设备",
          zone_names: "河北",
          push_time: "2020-01-01 00:00:00",
          accept_user: "张三",
          push_channel: "APP",
          push_result: 1,
          is_viewed: 1,
        },
        {
          id: "a1b699ab-c9e8-4581-a59d-b64369251be96",
          number_id: "12345678906",
          title: "沧州地区处理使用中1200无拉伸制袋机23的机器",
          cate: "二手设备",
          zone_names: "河北",
          push_time: "2020-01-01 00:00:00",
          accept_user: "张三",
          push_channel: "APP",
          push_result: 1,
          is_viewed: 1,
        },
        {
          id: "a1b699ab-c9e8-4581-a59d-b64369251be97",
          number_id: "12345678907",
          title: "沧州地区处理使用中1200无拉伸制袋机23的机器",
          cate: "二手设备",
          zone_names: "河北",
          push_time: "2020-01-01 00:00:00",
          accept_user: "张三",
          push_channel: "APP",
          push_result: 0,
          is_viewed: 0,
        },
        {
          id: "a1b699ab-c9e8-4581-a59d-b64369251be98",
          number_id: "12345678908",
          title: "沧州地区处理使用中1200无拉伸制袋机23的机器",
          cate: "二手设备",
          zone_names: "河北",
          push_time: "2020-01-01 00:00:00",
          accept_user: "张三",
          push_channel: "APP",
          push_result: 1,
          is_viewed: 1,
        },
        {
          id: "a1b699ab-c9e8-4581-a59d-b64369251be99",
          number_id: "12345678909",
          title: "沧州地区处理使用中1200无拉伸制袋机23的机器",
          cate: "二手设备",
          zone_names: "河北",
          push_time: "2020-01-01 00:00:00",
          accept_user: "张三",
          push_channel: "APP",
          push_result: 1,
          is_viewed: 1,
        },
        {
          id: "a1b699ab-c9e8-4581-a59d-b64369251be90",
          number_id: "12345678900",
          title: "沧州地区处理使用中1200无拉伸制袋机23的机器",
          cate: "二手设备",
          zone_names: "河北",
          push_time: "2020-01-01 00:00:00",
          accept_user: "张三",
          push_channel: "APP",
          push_result: 1,
          is_viewed: 1,
        },
      ],
      total: 100,
    };
    const err = {
      code: 500,
      msg: "获取列表失败",
    };
    setTimeout(() => {
      resolve(res);
      // reject(err);
    }, 500);
  });
}
/**
 * 信息推送-推送历史-获取招标拍卖的分类和地区
 * @param {number} data.number_ids - 信息number_ids
 */
function apiGetAuctionDetail(data) {
  console.log("apiGetAuctionDetail", data);
  return new Promise((resolve, reject) => {
    const res = {
      code: 200,
      data: [
        {
          number_id: "12345678901",
          categoryname: "二手设备1",
          address: "河北1",
        },
        {
          number_id: "12345678902",
          categoryname: "二手设备2",
          address: "河北2",
        },
        {
          number_id: "12345678903",
          categoryname: "二手设备3",
          address: "河北3",
        },
        {
          number_id: "12345678904",
          categoryname: "二手设备4",
          address: "河北4",
        },
        {
          number_id: "12345678905",
          categoryname: "二手设备",
          address: "河北",
        },
        {
          number_id: "12345678906",
          categoryname: "二手设备",
          address: "河北",
        },
        {
          number_id: "12345678907",
          categoryname: "二手设备",
          address: "河北",
        },
        {
          number_id: "12345678909",
          categoryname: "二手设备",
          address: "河北",
        },
        {
          number_id: "12345678909",
          categoryname: "二手设备",
          address: "河北",
        },
        {
          number_id: "12345678900",
          categoryname: "二手设备",
          address: "河北",
        },
      ],
    };
    const err = {
      code: 500,
      msg: "获取详情失败",
    };
    setTimeout(() => {
      resolve(res);
    }, 500);
  });
}
